<?php
$isLive = TRUE;

if($isLive) {
    $rootpath = '/home/content/58/7469158/html/';
    $siteurl = 'http://indianmobileprice.com/';
    
    /*
    $host = 'impd.db.7469158.hostedresource.com';
    $username = 'impd';
    $password = 'Password@1';
    $dbname = 'impd';
    $dbname = 'impdamazon';
    */
    $host = 'impdamazon.db.7469158.hostedresource.com';
    $username = 'impdamazon';
    $password = 'Password@1';
    $dbname = 'impdamazon';
}
else {
    $rootpath = 'D:/wamp/www/projects/indianmobileprice/';
    $siteurl = 'http://localhost/projects/indianmobileprice/';
    
    $host = 'localhost';
    $username = 'root';
    $password = '';
    //$dbname = 'impd';
    $dbname = 'impdamazon';
}

//------------- database connection ------------------//
$isConnected = mysql_connect($host, $username, $password);
$isSelected = mysql_select_db($dbname);

//echo '<pre>';var_dump($isSelected);exit;
?>